<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
?>
  <div class="user-body">
  	<div class="body-content">
      <div class="body-title">
       	<?php echo lang('user_info');?>      </div>
      
      <div class="info">
      	<form action="<?php echo site_url('account/save');?>" method="post" id="form_id">
      	<table cellspacing=0 cellpadding=0 border=0>
      		<tr>
      		<td valign=top class="user_logo"></td>
      		<td>
        	<table cellspacing=0 cellpadding=0 border=0 class="form">
        	  
			  <tr><th><?php echo lang('user_username');?>：</th><td><input type="text" value="<?php echo $user['username'];?>" disabled></td></tr>
			  <tr><th><?php echo lang('user_email');?>：</th><td>
<?php
if ($user['email']) {
?><input type="text" value="<?php echo email($user['email']);?>" disabled><?php
}
else {
?><a href="<?php echo site_url('safe');?>"><i class="fa fa-plus"></i> <?php echo lang('user_fast_bind');?></a><?php
}

?></td></tr>
			  <tr><th><?php echo lang('user_mobile');?>：</th><td>
<?php
if ($user['mobile']) {
?><input type="text" value="<?php echo mobile($user['mobile']);?>" disabled><?php
}
else {
?><a href="<?php echo site_url('safe');?>"><i class="fa fa-plus"></i> <?php echo lang('user_fast_bind');?></a><?php
}

?></td></tr>
			  <tr><th><?php echo lang('user_real_tit');?>：</th><td><?php
if ($user['name'] && $user['idno']) {
?><?php echo $user['name'];?> <?php echo $user['idno'];?><?php
}
else {
?><a href="<?php echo site_url('safe');?>"><i class="fa fa-plus"></i> <?php echo lang('user_fast_verify');?></a><?php
}

?></td></tr>
			  <tr><th>性别：</th><td><input type="radio" name="sex" checked value="0">男 <input type="radio" name="sex" value="1">女</td></tr>
			  <tr><th>所在地区：</th>
				  <td>
				  	<select name="area_code">
				  		
<?php
foreach ($area as $v) {
?>				  		<option value="<?php echo $v['code'];?>" 
<?php
	if ($v['is_default'] == 1) {
?>selected<?php
	}

?>><?php echo $v['name'];?></option>
				  		<?php
}

?>				  	</select>
				  </td>
			  </tr>
			  <tr><th>昵称：</th><td><input type="text" value="<?php echo $user['nickname'];?>" name="nickname"><p>请输入昵称</p></td></tr>
			  <tr><th>所在地址：</th><td><input type="text" value="<?php echo $user['address'];?>" name="address"><p>请输入所在地址</p></td></tr>
			  <tr><th>所在公司：</th><td><input type="text" value="<?php echo $user['company'];?>" name="company"><p>请输入所在公司</p></td></tr>
			  <tr><th>个人简介：</th><td><textarea cols=70 rows=7 name="intro"><?php echo $user['intro'];?></textarea><p>请输入个人简介</p></td></tr>
			  <tr><th><?php echo lang('user_last_login_time');?>：</th><td><?php echo date('Y-m-d H:i', $user['last_login_time']);?></td></tr>
			  <tr><th>注册时间：</th><td><?php echo date('Y-m-d H:i', $user['add_time']);?></td></tr>
			  <tr><td class="warning" style="padding:0px;"></td></tr>
    		  <tr><th colspan=2><button type="submit">保存</button></th></tr>
			</table>
			</td>
			</tr>
		</table>
		</form>
      </div>
      
    </div>
  </div>
  <div class="clear"></div>
</div>
<script>
$('#form_id').checkForm();
</script>